﻿using System;

namespace KinonekoSoftware.Studio.Pages.Shenanigans
{
    public partial class ChannelTalkingGalleryViewModel : TalkingGalleryViewModel
    {
        public ChannelTalkingGalleryViewModel() : base(TalkingChannelType.Channel)
        {
            
        }
        protected override string GetNewChannelDescription() => "输入群聊窗口的名字";
        
        protected override TalkingBase OnCreateInstance(string name, Character owner)
        {
            return new ChannelTalking
            {
                Id = ID.Get(),
                Name = name,
                OwnerID  = owner.Id,
                Messages = new List<TalkingObject>(),
                Members  = new List<string>(),
            };
        }
    }
}